-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List v2: fix migration when nested list is invalid #44822
Conversation
Size Change: +1.69 kB (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
👋 Hi there! Is this intended to be merged before the RC2 tomorrow? |
This should be merged, yes, but needs a review. |
The fix is not working in my environment :-( Gutenberg: Version 14.4.0-rc.1 I'm using
Screen.Recording.2022-10-24.at.17.27.44.mov |
@c4rl0sbr4v0 I tried your HTML and it's working fine? Note that this PR will not fix list blocks if they're already migrated. Only unmigrated blocks. So create a new post with your content to test the PR. |
As this is being discussed for backport to WordPress 6.1.1 or as a possible RC6 candidate, here is an additional report confirming reproduction in 6.1-RC5 and patch efficacy: Reproduction ReportEnvironment
Actual Results
Patch Test ReportEnvironment
Actual Results
Supplemental Artifacts
|
* List v2: fix migration when nested list is invalid * Reduce test case
* List v2: fix migration when nested list is invalid * Reduce test case
What and why?
This should fix #44757. The problem with this list is that there's multiple nested lists inside one list item, which is (for us) invalid. Thankfully we have existing code that takes care of this in the raw handler, but we're not making use of it. This PR changes list migration so that it now runs through the raw handler, which fixes the lists.
How?
Use the
rawHandler
.Testing Instructions
See #44757 and added test.
Screenshots or screencast